package com.winning.ds.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * @Author: nxs@winning.com.cn
 *
 * @Description:  系统用户-操作人员
 *
 * @Date: 2018-07-2 09:12:26
 *
 *
 **/
@TableName("sys_czry") // 注解指定表名
@Data
public class CommonJgUserEntity implements Serializable {


    //注册流水号
    private String zclsh;

    //人员编码
    private String rybm;
    //机构编码
    private String jgbm;
    //机构名称
    private String jgmc;
    //人员工号
    private String rygh;
    //人员姓名
    private String ryxm;
    //姓名拼音码
    private String xmpym;
    //姓名五笔码
    private String xmwbm;
    //登录代码
    private String dldm;
    //登录密码
    private String password;
    //所属科室
    private String ssks;
    //职务编码
    private String zwbm;
    //职务名称
    private String zwmc;
    //支撑
    private String zc;
    //文化程度
    private String whcd;
    //身份证号
    private String sfzh;
    //性别
    private String xb;
    //电话号码
    private String dhhm;
    //dzyx
    private String dzyx;
    //家庭地址
    private String jtdz;
    //所属系统
    private String ssxt;
    //shzt
    private String shzt;
    //记录状态
    private String jlzt;
    //所属业务科室
    private String ssywks;
    //科室类别
    private String kslb;
    //密码修改时间
    private Date mmxgsj;
    //人员内码
    private String rynm;
    //角色编码
    private String jsbm;
    //
    private String csrq;
    //启用状态      Y：启用；N：停用。
    private String qyzt;
    //拼音码
    private String pym;
    //五笔码
    private String wbm;
    //科室编码
    private String ksbm;
    //备注
    private String bz;
    //角色名称
    private String jsmc;
    //人员类型
    private String rylx;
    //所属病区
    private String ssbq;
    //失败次数
    private String sbcs;
    //锁定时间
    private Date sdsj;
    //首次密码错误时间
    private Date scmmcwsj;

    private String jglb;

    private static final long serialVersionUID = 1L;


    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CommonJgUserEntity other = (CommonJgUserEntity) that;
        return (this.getZclsh() == null ? other.getZclsh() == null : this.getZclsh().equals(other.getZclsh()))
            && (this.getRybm() == null ? other.getRybm() == null : this.getRybm().equals(other.getRybm()))
            && (this.getJgbm() == null ? other.getJgbm() == null : this.getJgbm().equals(other.getJgbm()))
            && (this.getRygh() == null ? other.getRygh() == null : this.getRygh().equals(other.getRygh()))
            && (this.getRyxm() == null ? other.getRyxm() == null : this.getRyxm().equals(other.getRyxm()))
            && (this.getXmpym() == null ? other.getXmpym() == null : this.getXmpym().equals(other.getXmpym()))
            && (this.getXmwbm() == null ? other.getXmwbm() == null : this.getXmwbm().equals(other.getXmwbm()))
            && (this.getDldm() == null ? other.getDldm() == null : this.getDldm().equals(other.getDldm()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getSsks() == null ? other.getSsks() == null : this.getSsks().equals(other.getSsks()))
            && (this.getZwbm() == null ? other.getZwbm() == null : this.getZwbm().equals(other.getZwbm()))
            && (this.getZwmc() == null ? other.getZwmc() == null : this.getZwmc().equals(other.getZwmc()))
            && (this.getZc() == null ? other.getZc() == null : this.getZc().equals(other.getZc()))
            && (this.getWhcd() == null ? other.getWhcd() == null : this.getWhcd().equals(other.getWhcd()))
            && (this.getSfzh() == null ? other.getSfzh() == null : this.getSfzh().equals(other.getSfzh()))
            && (this.getXb() == null ? other.getXb() == null : this.getXb().equals(other.getXb()))
            && (this.getDhhm() == null ? other.getDhhm() == null : this.getDhhm().equals(other.getDhhm()))
            && (this.getDzyx() == null ? other.getDzyx() == null : this.getDzyx().equals(other.getDzyx()))
            && (this.getJtdz() == null ? other.getJtdz() == null : this.getJtdz().equals(other.getJtdz()))
            && (this.getSsxt() == null ? other.getSsxt() == null : this.getSsxt().equals(other.getSsxt()))
            && (this.getShzt() == null ? other.getShzt() == null : this.getShzt().equals(other.getShzt()))
            && (this.getJlzt() == null ? other.getJlzt() == null : this.getJlzt().equals(other.getJlzt()))
            && (this.getSsywks() == null ? other.getSsywks() == null : this.getSsywks().equals(other.getSsywks()))
            && (this.getKslb() == null ? other.getKslb() == null : this.getKslb().equals(other.getKslb()))
            && (this.getMmxgsj() == null ? other.getMmxgsj() == null : this.getMmxgsj().equals(other.getMmxgsj()))
            && (this.getRynm() == null ? other.getRynm() == null : this.getRynm().equals(other.getRynm()))
            && (this.getJsbm() == null ? other.getJsbm() == null : this.getJsbm().equals(other.getJsbm()))
            && (this.getCsrq() == null ? other.getCsrq() == null : this.getCsrq().equals(other.getCsrq()))
            && (this.getQyzt() == null ? other.getQyzt() == null : this.getQyzt().equals(other.getQyzt()))
            && (this.getPym() == null ? other.getPym() == null : this.getPym().equals(other.getPym()))
            && (this.getWbm() == null ? other.getWbm() == null : this.getWbm().equals(other.getWbm()))
            && (this.getKsbm() == null ? other.getKsbm() == null : this.getKsbm().equals(other.getKsbm()))
            && (this.getBz() == null ? other.getBz() == null : this.getBz().equals(other.getBz()))
            && (this.getJsmc() == null ? other.getJsmc() == null : this.getJsmc().equals(other.getJsmc()))
            && (this.getRylx() == null ? other.getRylx() == null : this.getRylx().equals(other.getRylx()))
            && (this.getSsbq() == null ? other.getSsbq() == null : this.getSsbq().equals(other.getSsbq()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getZclsh() == null) ? 0 : getZclsh().hashCode());
        result = prime * result + ((getRybm() == null) ? 0 : getRybm().hashCode());
        result = prime * result + ((getJgbm() == null) ? 0 : getJgbm().hashCode());
        result = prime * result + ((getRygh() == null) ? 0 : getRygh().hashCode());
        result = prime * result + ((getRyxm() == null) ? 0 : getRyxm().hashCode());
        result = prime * result + ((getXmpym() == null) ? 0 : getXmpym().hashCode());
        result = prime * result + ((getXmwbm() == null) ? 0 : getXmwbm().hashCode());
        result = prime * result + ((getDldm() == null) ? 0 : getDldm().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getSsks() == null) ? 0 : getSsks().hashCode());
        result = prime * result + ((getZwbm() == null) ? 0 : getZwbm().hashCode());
        result = prime * result + ((getZwmc() == null) ? 0 : getZwmc().hashCode());
        result = prime * result + ((getZc() == null) ? 0 : getZc().hashCode());
        result = prime * result + ((getWhcd() == null) ? 0 : getWhcd().hashCode());
        result = prime * result + ((getSfzh() == null) ? 0 : getSfzh().hashCode());
        result = prime * result + ((getXb() == null) ? 0 : getXb().hashCode());
        result = prime * result + ((getDhhm() == null) ? 0 : getDhhm().hashCode());
        result = prime * result + ((getDzyx() == null) ? 0 : getDzyx().hashCode());
        result = prime * result + ((getJtdz() == null) ? 0 : getJtdz().hashCode());
        result = prime * result + ((getSsxt() == null) ? 0 : getSsxt().hashCode());
        result = prime * result + ((getShzt() == null) ? 0 : getShzt().hashCode());
        result = prime * result + ((getJlzt() == null) ? 0 : getJlzt().hashCode());
        result = prime * result + ((getSsywks() == null) ? 0 : getSsywks().hashCode());
        result = prime * result + ((getKslb() == null) ? 0 : getKslb().hashCode());
        result = prime * result + ((getMmxgsj() == null) ? 0 : getMmxgsj().hashCode());
        result = prime * result + ((getRynm() == null) ? 0 : getRynm().hashCode());
        result = prime * result + ((getJsbm() == null) ? 0 : getJsbm().hashCode());
        result = prime * result + ((getCsrq() == null) ? 0 : getCsrq().hashCode());
        result = prime * result + ((getQyzt() == null) ? 0 : getQyzt().hashCode());
        result = prime * result + ((getPym() == null) ? 0 : getPym().hashCode());
        result = prime * result + ((getWbm() == null) ? 0 : getWbm().hashCode());
        result = prime * result + ((getKsbm() == null) ? 0 : getKsbm().hashCode());
        result = prime * result + ((getBz() == null) ? 0 : getBz().hashCode());
        result = prime * result + ((getJsmc() == null) ? 0 : getJsmc().hashCode());
        result = prime * result + ((getRylx() == null) ? 0 : getRylx().hashCode());
        result = prime * result + ((getSsbq() == null) ? 0 : getSsbq().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", zclsh=").append(zclsh);
        sb.append(", rybm=").append(rybm);
        sb.append(", jgbm=").append(jgbm);
        sb.append(", rygh=").append(rygh);
        sb.append(", ryxm=").append(ryxm);
        sb.append(", xmpym=").append(xmpym);
        sb.append(", xmwbm=").append(xmwbm);
        sb.append(", dldm=").append(dldm);
        sb.append(", password=").append(password);
        sb.append(", ssks=").append(ssks);
        sb.append(", zwbm=").append(zwbm);
        sb.append(", zwmc=").append(zwmc);
        sb.append(", zc=").append(zc);
        sb.append(", whcd=").append(whcd);
        sb.append(", sfzh=").append(sfzh);
        sb.append(", xb=").append(xb);
        sb.append(", dhhm=").append(dhhm);
        sb.append(", dzyx=").append(dzyx);
        sb.append(", jtdz=").append(jtdz);
        sb.append(", ssxt=").append(ssxt);
        sb.append(", shzt=").append(shzt);
        sb.append(", jlzt=").append(jlzt);
        sb.append(", ssywks=").append(ssywks);
        sb.append(", kslb=").append(kslb);
        sb.append(", mmxgsj=").append(mmxgsj);
        sb.append(", rynm=").append(rynm);
        sb.append(", jsbm=").append(jsbm);
        sb.append(", csrq=").append(csrq);
        sb.append(", qyzt=").append(qyzt);
        sb.append(", pym=").append(pym);
        sb.append(", wbm=").append(wbm);
        sb.append(", ksbm=").append(ksbm);
        sb.append(", bz=").append(bz);
        sb.append(", jsmc=").append(jsmc);
        sb.append(", rylx=").append(rylx);
        sb.append(", ssbq=").append(ssbq);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}